﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using Valentia.Kinection.Service;

namespace Valentia_Kinect_Service
{
    static class Program
    {
        //internal static SynchronizationContext context;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        //[MTAThread]
        static void Main()
        {
            KinectService proxyService = new KinectService();
            //try
            //{
            //proxyService.StartKinect();

            ServiceBase[] ServicesToRun = new ServiceBase[] { proxyService };
            ServiceBase.Run(ServicesToRun);
            //}
            //catch
            //{
            //    proxyService.StopKinect();
            //    throw;
            //}
        }
    }
}
